package com.eyedog.video.mine;

import android.content.Context;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.view.View;

import com.eyedog.uilibrary.base.BaseDialog;
import com.eyedog.video.MainActivity;

public class ProfileAlertDialog extends BaseDialog {

    public ProfileAlertDialog(@NonNull Context context) {
        super(context);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mConfirm.setText("确定");
        mCancel.setText("取消");
        mContent.setText("当前可用播放次数为0，请联系客服或推广app");
        mTitle.setText("播放失败");
        mConfirm.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                getContext().startActivity(MainActivity.createIntent(getContext(),2));
            }
        });
    }
}
